import Record from '../../../components/RecordVideo'
import { connect } from 'dva'

const RecordVideo = ({dispatch}) => {
  const buttonData = {
    content: '录制视频',
    act: () => {
      dispatch({
        type: 'modules/getModules',
        payload: {
          title: '手机号修改',
          process: 'modifyPhone',
          pathname: '',
          tokenId: 'test',
          businessId: '1231241218',
        }
      })
    }
  }
  const loadData = {
    content: '视频上传中...',
    imgClass: 'videoPhoto'
  }
  return (
    <Record buttonData={buttonData} loadData={loadData}></Record>
  )
} 

export default connect(state => state.modifyPhone)(RecordVideo)